package com.example.common.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "音乐信息")
public class Musicinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;
    /*
    * category_id数据库对应的字段，（进行设置，去掉下划线，使用驼峰命名法），对应categoryId
    * */

    private Long userId;

    private Long singerId;

    private String price;

    private String image;

    private String music;

    private Long download;

    private Long audition;

    private int iscollection;

    private String description;

    private int status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private Long createUser;

    private Long updateUser;

    private Long isdelete;
}
